package com.jasen.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @MapperScan: 扫描Mybatis的Dao接口
 *
 * @EnableEurekaClient: 本服务启动后会自动注册进eureka服务中
 *
 * @EnableDiscoveryClient: 启用服务发现客户端
 *
 * @EnableCircuitBreaker 对Hystrix熔断机制的支持
 */
@SpringBootApplication
@MapperScan("com.jasen.*.mapper")
@EnableEurekaClient
@EnableDiscoveryClient
@EnableCircuitBreaker
public class DeptProvider8001_Hystrix_App
{
    public static void main( String[] args )
    {
        SpringApplication.run(DeptProvider8001_Hystrix_App.class, args);
    }
}
